#!/bin/sh -e

asm=1
case $3 in i*86) asm=0; esac

mk() {
    make \
        PREFIX=/usr \
        LDFLAGS="$LDFLAGS -static" \
        WITH_ASM="$asm" \
        "$@"
}

mk
mk DESTDIR="$1" install
